package cn.webrx;

import java.util.LinkedList;
import java.util.List;

public class LinkedList3 {
    public static void main(String[] args) {
        var list = new LinkedList<String>(List.of("aa","bb","cc","ff"));
        System.out.println(list);
        System.out.println(list.peek());
        System.out.println(list.pop());
        System.out.println(list.removeLast());
        System.out.println(list);
    }
}
